package cn.doourbest.learnspring.tomcat;

import org.apache.catalina.LifecycleException;
import org.apache.catalina.startup.Tomcat;

/**
 * @description:
 * @author: zhangsc
 * @create: 2019/10/25
 */
public class MainTomcat {

    public static void main(String[] args) throws LifecycleException {


        Tomcat tomcat = new Tomcat();
        tomcat.setPort(8083);
        tomcat.addWebapp("","E:\\eclipseworkspace\\ZSCLeanrSpring");
        tomcat.start();
        tomcat.getServer().await();
    }
}
